package com.abhinav.designPatterns.strategy;

import java.io.File;
import java.util.ArrayList;

public class Client {
	public static void main(String[] args) {
		CompressionContext ctx = new CompressionContext();
		
		//we could assume context is already set by preferences
		ctx.setCompressionStrategy(new ZipCompressionStrategy());   
		
		ArrayList<File> filelist = new ArrayList<File>();
		filelist.add(new File("input.xml"));
		
		ctx.createArchive(filelist);   
	}
}
